include "../model/TSginal.thrift"
include "../model/TQuery.thrift"
namespace java com.iqiyi.pps.epg.api.server.web.sginal

 service SginalWebService {
    i32 modifySginal(1:TSginal.TSginalBase entity, 2:string user);
    i32 deleteSginal(1:i32 id, 2:string user);
    i32 forceDeleteSginal(1:i32 id, 2:string user);
    i32 startSginal(1:i32 id, 2:string user);
    i32 stopSginal(1:i32 id, 2:string user);
    TSginal.TSginalDataPage getSginalData(1:TQuery.TPage page, 2:TQuery.TFilter filter);

    i64 sginalStatus(1:i32 cid, 3:string status);
    TSginal.TSginalStatusDataPage getSginalStatusData(1:TQuery.TPage page, 2:TQuery.TFilter filter);

    TSginal.TSginalLogDataPage getSginalLogData(1:TQuery.TPage page, 2:TQuery.TFilter filter);

    i32 createServer(1:TSginal.TServer entity);
    i32 updateServer(1:TSginal.TServer entity);
    i32 deleteServer(1:i32 id);
    TSginal.TServerDataPage getServersData(1:TQuery.TPage page,2:TQuery.TFilter filter);

    TSginal.TServerStatusDataPage getServerStatusData(1:TQuery.TPage page,2:TQuery.TFilter filter);

    TSginal.TVersionControllerDataPage getVersionControllerData(1:TQuery.TPage page,2:TQuery.TFilter filter);
    list<string> getVersionHistory();
    i32 delVersionController(1:i32 id);
    i32 synVersionController(1:string serverIp,2:string hardware,3:string remark);
    i32 checkInsideServerIp(1:string serverIp);
    string getMainVersion();
    i32 setMainVersion(1:string versions);
    i32 synVersionStatus(1:string versions);

    TSginal.TServerClusterDataPage getServerClusterData(1:TQuery.TPage page,2:TQuery.TFilter filter);
    list<string> getAllCluster();
    i32 delServerCluster(1:i32 id);
    i32 updateServerCluster(1:TSginal.TServerCluster entity);
    i32 createServerCluster(1:TSginal.TServerCluster entity);
    i32 changeClusterServers(1:list<string> entity, 2:i32 clusterId);
    i32 setClusterServers(1:list<string> entity, 2:i32 clusterId);
 }

